#pragma once
#include "tinydbmapper.h"
#include "TinyUser.h"

namespace DBLayer{

class CUserMapper :
	public CTinyDBMapper<RuntimeMgr::CTinyUser>
{
public:
	CUserMapper(int){};
	CUserMapper(void);
	~CUserMapper(void);
	virtual bool loadData(int type,CTinyDBInterface* m_DBIF);
	std::string getPassWordByName(std::string name);
	std::string getGroupIDByName(std::string name);
	std::vector<std::string> getFriends(std::string username);
	virtual std::vector<RuntimeMgr::CTinyUser*>* GetAll(){return NULL;}
};
}